package Basepractice.P2017_11_1;

/**
 * Created by Administrator on 2017/11/1.
 */
public class While {
    public static void main(String[] args) {
        int n,m,i;
        n=10;m=5;i=0;
        long sum=0;
        while (i<=n){
            if (i%m==0){
                sum=sum+i;
            }
            i++;

        }
        System.out.println("值为"+sum);

    }
}
